package com.tcgroup.phone.base_core.binding.imageview;

import android.widget.ImageView;

import androidx.annotation.DrawableRes;
import androidx.databinding.BindingAdapter;

/**
 * 作者: wangfei
 * 创建时期: 2019/4/21.
 * 包名: com.tcgroup.phone.base_core.base.adapter.binding
 * 类名: Hibeauty-Phone
 * 会自动适配当前的文件：覆盖src所对应的方法
 */
public class ViewBindAdapter {


    @BindingAdapter("backgroundSrc")
    public static void setBackgroundSrc(ImageView imageView, @DrawableRes int drawableId) {
        imageView.setImageResource(drawableId);
    }

}
